import { useMemo } from 'react';
export default function useInput(_ref) {
  var valueType = _ref.valueType;
  var extraProps = useMemo(
    function () {
      var result = {};
      if (valueType) {
        switch (valueType) {
          case 'mobileCn':
            result.type = 'phone';
            result.maxLength = 11;
            break;
          case 'idCard':
            result.maxLength = 18;
            break;
          default:
            break;
        }
      }
      return result;
    },
    [valueType],
  );
  return {
    extraProps: extraProps,
  };
}
